package com.deepwiki.model;

import java.time.LocalDateTime;

/**
 * 仓库数据模型
 */
public class Warehouse {

    private String id;
    private String name;
    private String description;
    private String localPath; // 本地代码路径
    private String branch;
    private String version;
    private String organizationName;
    private String status;
    private String error;
    private String optimizedDirectoryStructure;
    private LocalDateTime createdAt;
    private LocalDateTime updatedAt;

    public Warehouse() {
        this.createdAt = LocalDateTime.now();
        this.updatedAt = LocalDateTime.now();
    }

    public Warehouse(String id, String name, String localPath) {
        this();
        this.id = id;
        this.name = name;
        this.localPath = localPath;
    }

    // Getters and Setters
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getLocalPath() {
        return localPath;
    }

    public void setLocalPath(String localPath) {
        this.localPath = localPath;
    }

    public String getBranch() {
        return branch;
    }

    public void setBranch(String branch) {
        this.branch = branch;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getOrganizationName() {
        return organizationName;
    }

    public void setOrganizationName(String organizationName) {
        this.organizationName = organizationName;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getError() {
        return error;
    }

    public void setError(String error) {
        this.error = error;
    }

    public String getOptimizedDirectoryStructure() {
        return optimizedDirectoryStructure;
    }

    public void setOptimizedDirectoryStructure(String optimizedDirectoryStructure) {
        this.optimizedDirectoryStructure = optimizedDirectoryStructure;
    }

    public LocalDateTime getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(LocalDateTime createdAt) {
        this.createdAt = createdAt;
    }

    public LocalDateTime getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(LocalDateTime updatedAt) {
        this.updatedAt = updatedAt;
    }

    @Override
    public String toString() {
        return "Warehouse{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", localPath='" + localPath + '\'' +
                ", status='" + status + '\'' +
                '}';
    }
} 